package com.sysware.p2m;

import com.sysware.p2m.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class QuartzTaskComponent {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    UserService userService;

    public void start(String id, String age){
        System.out.println(id+"\t"+age);
        logger.info("集群节点任务：test2");
        userService.query("222");
    }

}
